/**
 *reverse()方法颠倒数组中元素的顺序
 */
var myArray = ['one', 'two', 'three'];
myArray.reverse();

console.log(myArray) // ['three', 'two', 'one']
